SftTree/NET 2.0

ColumnClass Constructor

Softel vdm, Inc.

Initializes a new instance of the ColumnClass class.

Syntax      ColumnClass Class (Softelvdm.SftTreeNET)

VB   

Public Sub New()
Public Sub New( _
     ByVal Width As Integer, _
     ByVal Position As Integer, _
     ByVal Resizable As Boolean, _
     ByVal Reorderable As Boolean, _
     ByVal KeepPosition As Boolean, _
     ByVal MinWidth As Integer, _
     ByVal MaxWidth As Integer, _
     ByVal MergeWithNextDefault As Boolean, _
     ByVal MergeWithLowerDefault As Boolean, _
     ByVal AllowMergeFromPreviousDefault As Boolean, _
     ByVal AllowMergeFromUpperDefault As Boolean, _
     ByVal ShowToolTips As Boolean, _
     ByVal ShowHierarchy As Boolean, _
     ByVal BackColor As Color, _
     ByVal ForeColor As Color, _
     ByVal BackColorSelected As Color, _
     ByVal ForeColorSelected As Color, _
     ByVal GridLinesStyle As GridLinesOptStyleEnum )

C#   

public ColumnClass();
public ColumnClass(
     int Width,
     int Position,
     bool Resizable,
     bool Reorderable,
     bool KeepPosition,
     int MinWidth,
     int MaxWidth,
     bool MergeWithNextDefault,
     bool MergeWithLowerDefault,
     bool AllowMergeFromPreviousDefault,
     bool AllowMergeFromUpperDefault,
     bool ShowToolTips,
     bool ShowHierarchy,
     Color BackColor,
     Color ForeColor,
     Color BackColorSelected,
     Color ForeColorSelected,
     GridLinesOptStyleEnum GridLinesStyle );

C++   

public: ColumnClass();
public: ColumnClass(
     int Width,
     int Position,
     bool Resizable,
     bool Reorderable,
     bool KeepPosition,
     int MinWidth,
     int MaxWidth,
     bool MergeWithNextDefault,
     bool MergeWithLowerDefault,
     bool AllowMergeFromPreviousDefault,
     bool AllowMergeFromUpperDefault,
     bool ShowToolTips,
     bool ShowHierarchy,
     Color BackColor,
     Color ForeColor,
     Color BackColorSelected,
     Color ForeColorSelected,
     GridLinesOptStyleEnum GridLinesStyle );

AllowMergeFromPreviousDefault

Defines the default for new cells, whether cells in this column allow merging with cells in the previous column (AllowMergeFromPreviousDefault property).

AllowMergeFromUpperDefault

Defines the default for new cells, whether cells in this column allow merging with cells above, in the same column (AllowMergeFromUpperDefault property).

BackColor

Defines the default background color for cells in this column (BackColor property).

BackColorSelected

Defines the default background color for selected cells in this column (BackColorSelected property).

ForeColor

Defines the default foreground color for cells in this column (ForeColor property).

ForeColorSelected

Defines the default foreground color for selected cells in this column (ForeColorSelected property).

GridLinesStyle

Defines the grid lines style (GridLines property).

GridLinesOptStyleEnum

Value

Description

None

0

No grid lines are shown.

Vertical

1

Vertical grid lines are shown.

Horizontal

2

Horizontal grid lines are shown.

Both

3

Both horizontal and vertical grid lines are shown.

Default

-1

The grid lines style is determined by the containing item or control.

KeepPosition

Defines whether the column must remain in its current position and cannot be reordered (KeepPosition property).

MaxWidth

Defines the column's maximum width (MaxWidth property).

MergeWithLowerDefault

Defines the default for new cells, whether cells in this column merge with cells below, in the same column (MergeWithLowerDefault property).

MergeWithNextDefault

Defines the default for new cells, whether cells in this column merge with cells in the next column (MergeWithNextDefault property).

MinWidth

Defines the column's minimum width (MinWidth property).

Position

Defines the column's display position (Position property).

Reorderable

Defines whether the column is reorderable (Reorderable property).

Resizable

Defines whether the column is resizable (Resizable property).

ShowHierarchy

Defines whether hierarchy information is shown in this column (ShowHierarchy property).

ShowToolTips

Defines whether tooltips are shown for cells in this column (ShowToolTips property).

Width

Defines the column's width.

Comments

The ColumnClass constructor initializes a new instance of the ColumnClass class.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com